package com.timeshare.dto;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 评价请求DTO
 */
@Data
public class ReviewRequest {
    
    @NotNull(message = "预约ID不能为空")
    private Long appointmentId;
    
    @NotNull(message = "评分不能为空")
    @Min(value = 1, message = "评分最低1星")
    @Max(value = 5, message = "评分最高5星")
    private Integer rating;
    
    private String content;
    
    private String tags;
}

